package com.hotacorp.opencloud.authserver.feign;

import org.springframework.stereotype.Component;

import com.hotacorp.opencloud.common.authcommon.SysClientBean;
import com.hotacorp.opencloud.common.authcommon.SysUserBean;
import com.hotacorp.opencloud.common.commdata.Result;

/**
 * 熔断，当访问用户信息以用于验证时
 * @author lwg
 *
 */
@Component
public class UserFeignClientHystric implements UserFeignClient {

	@Override
	public Result<SysUserBean> findByUsername(String username) {
		return Result.failed("调用失败");
	}

	@Override
	public Result<SysUserBean> findByMobile(String phone) {
		return Result.failed("调用失败");
	}

	@Override
	public Result<SysClientBean> loadClientByClientId(String clientId) {
		return Result.failed("调用失败");
	}

}
